/**
 * Created by Administrator on 2015/4/2.
 */
var mongoose = require("mongoose");
var Schema = mongoose.Schema;
var mes=new Schema({
   title:String,
    body:[{name:String,cont:String}],
    Date:Date
},{collection : 'message'});
var userSchema=new Schema({
    name:String,
    password:String,
    sex:String
})
mongoose.model("users",userSchema);
mongoose.model('mes', mes);